package com.hp.ppm.ext.kuka;

import java.io.Serializable;

public class RequestTypeMessage implements Serializable{

	public static final String LINK_MESSAGE="link_msg";
	public static final String SHOW_MESSAGE="show_msg";

	private String requestId;
	
	private String requestUrld;
	
	private String name;
	
	private String status;
	
	private String workProcess;
	
	private String createTime;
	
	private String createUser;

	private String messageType;

	public String getMessageType() {
		return messageType;
	}

	public void setMessageType(String messageType) {
		this.messageType = messageType;
	}

	public String getRequestId() {
		return requestId;
	}

	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}

	public String getRequestUrld() {
		return requestUrld;
	}

	public void setRequestUrld(String requestUrld) {
		this.requestUrld = requestUrld;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getWorkProcess() {
		return workProcess;
	}

	public void setWorkProcess(String workProcess) {
		this.workProcess = workProcess;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((createTime == null) ? 0 : createTime.hashCode());
		result = prime * result + ((createUser == null) ? 0 : createUser.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((requestId == null) ? 0 : requestId.hashCode());
		result = prime * result + ((requestUrld == null) ? 0 : requestUrld.hashCode());
		result = prime * result + ((status == null) ? 0 : status.hashCode());
		result = prime * result + ((workProcess == null) ? 0 : workProcess.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		RequestTypeMessage other = (RequestTypeMessage) obj;
		if (createTime == null) {
			if (other.createTime != null)
				return false;
		} else if (!createTime.equals(other.createTime))
			return false;
		if (createUser == null) {
			if (other.createUser != null)
				return false;
		} else if (!createUser.equals(other.createUser))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (requestId == null) {
			if (other.requestId != null)
				return false;
		} else if (!requestId.equals(other.requestId))
			return false;
		if (requestUrld == null) {
			if (other.requestUrld != null)
				return false;
		} else if (!requestUrld.equals(other.requestUrld))
			return false;
		if (status == null) {
			if (other.status != null)
				return false;
		} else if (!status.equals(other.status))
			return false;
		if (workProcess == null) {
			if (other.workProcess != null)
				return false;
		} else if (!workProcess.equals(other.workProcess))
			return false;
		return true;
	}
	
	
}
